package com.reshare.controller;

import com.reshare.base.BaseController;
import com.reshare.bean.SysLog;
import com.reshare.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/*功能描述
 * @author ahm
// */
@Controller
@RequestMapping("sysLog")
public class SysLogController extends BaseController {

    @Autowired
    private SysLogService sysLogService;
//    private Integer page=1;
//    private Integer limit=10;
    @RequestMapping("list")
    @ResponseBody
    public Map<String,Object> fingAll(Integer page,Integer limit){
        Map<String, Object> all = sysLogService.findAll(page,limit);
        return all;

    }

    @RequestMapping("index")
    public String index(){
        return "log/sysLog";
    }


}
